<?
require('../serverside/includes/init.inc.php');
require('../serverside/includes/api.tags.php');

function test_insert_new_tag() {
    insert_new_tag("patapon!");
    
}
function test_delete_tag() {
    delete_tag(19);
}

function test_get_current_tag() {
        return get_all_tags_for_user(1, true);
}

function test_update_tag() {
    update_tag_name('patapon!', 'degeso!');
}

function test_update_tag_by_id() {
    $id = insert_new_tag("patapon!");
    echo $id;
    update_tag_by_id($id, 'degeso!');
}

echo 'hahaha!';
#test_insert_new_tag();
#print_r (test_get_current_tag());
#test_delete_tag();
test_update_tag_by_id();

?>
